package com.sxpi.controller;

import com.sxpi.common.result.Result;
import com.sxpi.model.entity.Bookings;
import com.sxpi.model.vo.NoticeVo;
import com.sxpi.service.BookingsService;
import com.sxpi.service.NoticeService;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/notice")
public class NoticeController {
    @Resource
    private NoticeService noticeService;


    @GetMapping("/getAll")
    public Result<NoticeVo> getAll(){
        return Result.ok(noticeService.getAll());
    }
}
